package main

import (
	"fmt"
	"reflect"
)

func digui(i int) int {
	if i <= 2 {
		return i
	}
	var temp, temp1, temp2 int
	temp1 = digui(i-1)
	temp2 = digui(i-2)
	temp = temp1 + temp2
	return temp
}


//ff := 33
func main() {
	var n int = 6
	var result int
	result = digui(n)
	fmt.Println(result)

	var wu = 100
	fmt.Printf("%T\n", wu)
	fmt.Println(reflect.TypeOf(wu))

	f := 100.14
	fmt.Println(reflect.TypeOf(f))

	//fmt.Println(reflect.TypeOf(ff))

	res1, res2 := mingzi(22)
	fmt.Println(res1,res2,res2,res2)

	var a = 1
	changeint(&a)
	fmt.Println(a)

	digui2(1)
}

func mingzi(xx int) (int,int) {
	var temp int = xx * 2
	return temp,xx
}

func changeint(a *int) {
	*a = 10
}

func digui2(a int) {
	var temp int
	temp = a
	var zz, xx int = mingzi(10)
	fmt.Println(temp)
	fmt.Println(zz,xx)
}


